Dynomotion

Group: DynoMotion Message: 15 From: Azd Md Date: 1/5/2009
Subject: How to save the gathered data to a file?
Hi Tom
tyhank you very much for your reply. u r right this was the reason. I ve already checked the signal with OSC. and it drops down after connection.with the buffer its working great.
I ve another simple question. I used the sample gather program. and its working fine. the only thing the data is sent to the console. Is thetre a way to save the data to a file for later use.
Thanks
Azed


--- On Tue, 1/6/09, Tom Kerekes <tk@...> wrote:
From: Tom Kerekes <tk@...>
Subject: Re: [DynoMotion] Kmotion: how to read current position using c parogram
To: DynoMotion@yahoogroups.com
Date: Tuesday, January 6, 2009, 2:39 AM

Hi Azed,

Regarding Encoder connected to KMotion:
A single click should change the IO to an output (not a double click).  It's not a good idea to connect two outputs together as they will "fight" each other.   Maybe your encoders have open collector outputs that require a pullup resistor?

Regarding Kanalog:
The requirement is a differential signal.  Kanalog has on board 400ohm termination resistors (SnapAmp does not).  It may be that your encoder doesn't have enough current drive for the 400 ohm termination. 

The way to diagnose these issues is to use a oscilloscope (or even a voltmeter) and check what voltage levels you have before and after you make the connection.

I hope this helps
TK



Group: DynoMotion Message: 16 From: TK Date: 1/6/2009
Subject: Re: How to save the gathered data to a file?

Hi Azed,

 

BTW all the console data gets logged to a disk file called log.txt within the KMotion\Data subdirectory.

 

However if you want to write selected data to a specific disk file you would need to write a PC program.  The Download Waveform.cpp example might be the place to start.  It uses the SetGatherHex command to put values from the PC into the DSPs Gather Buffer.  It could be changed to use the GetGatherHex command to read values up to the PC, which you could then write to disk.  Once you write a PC program there are lots of possibilities such as triggering the data capture as well.

 

To compile and change the PC VC Examples without any modifications you will need Microsoft Visual Studio 2008.

 

Regards

TK

 

Group: DynoMotion Message: 17 From: Azd Md Date: 1/6/2009
Subject: Re: How to save the gathered data to a file?
Thank you very much, that is really helpfull
I ve another question, I ve a motor with a break, do I need to use a relay to switch the break on/off or i can connect it directly to the board.
by the way I think the JP8 in the Kanalog manual is wrongly shown in the first figure. "the relay 24 JP) see the link.
http://dynomotion.com/Help/SchematicsKanalog/ConnectorsKanalog.htm
thanks
Azed

--- On Wed, 1/7/09, TK <tk@...> wrote:
From: TK <tk@...>
Subject: RE: [DynoMotion] How to save the gathered data to a file?
To: DynoMotion@yahoogroups.com
Date: Wednesday, January 7, 2009, 7:24 AM

Hi Azed,

 

BTW all the console data gets logged to a disk file called log.txt within the KMotion\Data subdirectory.

 

However if you want to write selected data to a specific disk file you would need to write a PC program.  The Download Waveform.cpp example might be the place to start.  It uses the SetGatherHex command to put values from the PC into the DSPs Gather Buffer.  It could be changed to use the GetGatherHex command to read values up to the PC, which you could then write to disk.  Once you write a PC program there are lots of possibilities such as triggering the data capture as well.

 

To compile and change the PC VC Examples without any modifications you will need Microsoft Visual Studio 2008.

 

Regards

TK

 


From: DynoMotion@yahoogro ups.com [mailto: DynoMotion@yahoogro ups.com ] On Behalf Of Azd Md
Sent: Monday, January 05, 2009 6:28 PM
To: DynoMotion@yahoogro ups.com
Subject: [DynoMotion] How to save the gathered data to a file?

 

Hi Tom
tyhank you very much for your reply. u r right this was the reason. I ve already checked the signal with OSC. and it drops down after connection.with the buffer its working great.
I ve another simple question. I used the sample gather program. and its working fine. the only thing the data is sent to the console. Is thetre a way to save the data to a file for later use.
Thanks
Azed


--- On Tue, 1/6/09, Tom Kerekes <tk@dynomotion. com> wrote:

From: Tom Kerekes <tk@dynomotion. com>
Subject: Re: [DynoMotion] Kmotion: how to read current position using c parogram
To: DynoMotion@yahoogro ups.com
Date: Tuesday, January 6, 2009, 2:39 AM

Hi Azed,

 

Regarding Encoder connected to KMotion:

A single click should change the IO to an output (not a double click).  It's not a good idea to connect two outputs together as they will "fight" each other.   Maybe your encoders have open collector outputs that require a pullup resistor?

 

Regarding Kanalog:

The requirement is a differential signal.  Kanalog has on board 400ohm termination resistors (SnapAmp does not).  It may be that your encoder doesn't have enough current drive for the 400 ohm termination. 

 

The way to diagnose these issues is to use a oscilloscope (or even a voltmeter) and check what voltage levels you have before and after you make the connection.

 

I hope this helps

TK

 

 

 


From: Azd Md <azken98@yahoo. com>
To: DynoMotion@yahoogro ups.com
Sent: Friday, January 2, 2009 2:25:45 AM
Subject: RE: [DynoMotion] Kmotion: how to read current position using c parogram

HI TK
with Snap Amp its working fine, however with KMotion, some times i have to dbl click on the OUTPUTS before it works, I dont know why!.
The other thing is that, with the Kflop and Kanalog configuration the encoder input channels can not tolerate "my"  5V encoder signals as stated in the spec, when i used 74ls245 buffer IC they also fine.
Sure u can ask anything,  I have a basic knowlege on this stuff. but as far as   Dynomotion is concerned, I am new.

Have a nice day.

Azed


--- On Thu, 1/1/09, TK <tk@dynomotion. com> wrote:

From: TK <tk@dynomotion. com>
Subject: RE: [DynoMotion] Kmotion: how to read current position using c parogram
To: DynoMotion@yahoogro ups.com
Date: Thursday, January 1, 2009, 6:01 AM

Hi Azed,

 

All IO pins should default as inputs.  You can verify this on the Digital IO Screen.

 

Axis channel #0 defaults to read encoder channel #0 which would be KMotion Encoder #0

 

Axis channel #4 defaults to read encoder channel #4 which would be SnapAmp0 Encoder #0

 

Are you connecting a ground and +5V to the encoder?  (sorry had to ask).

 

SnapAmp has differential encoder inputs (A, /A, B, /B) where KMotion only has single ended encoder inputs (A and B).  Do you understand the difference?  For single ended just connect 2 of the 4 signal wires.  Can you see the IO bits toggle on the Digital IO Screen?

 

TK

 


From: DynoMotion@yahoogro ups.com [mailto:DynoMotion@ yahoogroups. com] On Behalf Of Azd Md
Sent: Tuesday, December 30, 2008 10:46 PM
To: DynoMotion@yahoogro ups.com
Subject: RE: [DynoMotion] Kmotion: how to read current position using c parogram

 

Thanks TK for your reply
I ve tried this itw orsk with the SnapAmp but not with the Kmotion.
could it be that the default setup of the IO pins is digital output , not encoder??
thanks
Azed

--- On Wed, 12/31/08, TK <tk@dynomotion. com> wrote:

From: TK <tk@dynomotion. com>
Subject: RE: [DynoMotion] Kmotion: how to read current position using c parogram
To: DynoMotion@yahoogro ups.com
Date: Wednesday, December 31, 2008, 2:25 PM

Azed,

 Run the Kmotion.exe program.  Since you have a KMotion board.  Make sure the KFLOP option is not checked under the option menu.

 Open the Axis Screen.  Does the Position of Axis #0 change when you rotate the encoder?

 You should also be able to see the two input bits #0 and #1 change randomly on the Digital IO screen when you rotate the encoder.

 If all this works you can print the encoder position from a C program with something like:

             printf(“Encoder 0 = %f\n”,ch0->Position) ;

  TK

 


From: DynoMotion@yahoogro ups.com [mailto:DynoMotion@ yahoogroups. com] On Behalf Of azken98
Sent: Tuesday, December 30, 2008 9:29 PM
To: DynoMotion@yahoogro ups.com
Subject: [DynoMotion] Kmotion: how to read current position using c parogram

 

I ve just started with KMotion, i ve KMotion board .
I ve connected the encoder channels A and B to the KMotion JP3 pins 15
and 16.
Now I want to test the Encoder position, any help?
thanks
Azed

Checked by AVG - http://www.avg. com
Version: 8.0.176 / Virus Database: 270.10.1/1868 - Release Date: 12/30/2008 12:06 PM

 

Checked by AVG - http://www.avg. com
Version: 8.0.176 / Virus Database: 270.10.1/1870 - Release Date: 12/31/2008 8:44 AM

 

Checked by AVG - http://www.avg. com
Version: 8.0.176 / Virus Database: 270.10.3/1877 - Release Date: 1/5/2009 7:20 PM


Group: DynoMotion Message: 18 From: Tom Kerekes Date: 1/7/2009
Subject: Re: How to save the gathered data to a file?
You should be able to drive the Brake directly with the Kanalog Relay Switches (Mosfets) if it requires 24V and 1 amp or less.  Make sure to add a reverse diode across the Brake to allow the current to recirculate when the switch turns off.
Yes that is a mistake.  The other JP6 should be JP8.  Thanks.
TK